import request from "@/utils/request";

export const getRoleList = params => {
    return request({
      url: '/role/list',  
      params
    })
  } 
  
  export const editRole = data => {
    return request({
      url: '/role/update', 
      method: 'POST',
      data
    })
} 
export const addRole = data => {
  return request({
    url: '/role/update', 
    method: 'POST',
    data
  })
} 
export const roleAddMenu = data => {
  return request({
    url: '/role/addMenus', 
    method: 'POST',
    data
  })
} 


export const roleDelete = data => {
  return request({
    url: '/role/delete', 
    method: 'POST',
    data
  })
} 